package com.gome.ocean.service.gddl;

import java.util.List;

import com.github.pagehelper.Page;
import com.gome.ocean.common.exception.ClusterServiceException;
import com.gome.ocean.dao.model.gddl.ClusterBO;

public interface ClusterService {

    public boolean insertClusterBO(ClusterBO clusterBO) throws ClusterServiceException;

    public boolean removeClusterBOById(Long id);

    public boolean updateCluster(ClusterBO clusterBO) throws ClusterServiceException;

    public ClusterBO findClusterBOById(Long id);

    public List<Long> findAllClusterIds();

    public List<Long> findAllClusterIdsByProjects(List<String> projectNames);

    public List<ClusterBO> findAllClusterBOs();

    public Page<ClusterBO> findClusterBOs(int pageNum, int pageSize);

    public List<ClusterBO> findAllClusterBOsByProjects(List<String> projectNames);

    public Page<ClusterBO> findClusterBOByName(String name, int pageNum, int pageSize);

}
